/**
 * 公共路由
 */
import Layout from '@/layout/index.vue'

export default [
  {
    path: '/',
    redirect: '/dashboard',
    component: Layout,
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        meta: { title: '首页', icon: 'iconfont icon-shouye' },
        component: () => import('@/views/dashboard/index.vue')
      }
    ]
  },
  {
    path: '/404',
    name: '404',
    hidden: true,
    component: () => import('@/views/error-page/404.vue')
  }
]
